package com.antdesignbackend.backend.news.news.service;


import com.antdesignbackend.backend.news.news.entity.News;
import com.antdesignbackend.backend.news.news.entity.entityVo.NewsVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 消息推送
 *
 * @author 不二
 * @email news
 * @date 2020-07-27 16:51:20
 */


public interface NewsService extends IService<News>{
    void createNews(News news) throws Exception;
    void updateNews(News news) throws Exception;
    List<NewsVo> search(@Param(Constants.WRAPPER) QueryWrapper<NewsVo> wrapper, Page<NewsVo> page);
    Integer count(@Param(Constants.WRAPPER) QueryWrapper<NewsVo> wrapper);
}


